<{include file="../common/header.tpl"}>
<table width="100%" border="0" cellspacing="0">
 <tr>
    <td width="13%" valign="top">
            <{include file="../common/left.tpl"}>
    </td>
    <td width="87%" valign="top">
					
        <table width="100%" border="0" cellspacing="0">
          <tr>
                <td>
                <form name="myform" action="/webadmin/progress/projectquestion" method="get" id="myform">
                    <div class="explain-col">
                        <b><a href="/webadmin/progress/schedule?project_id=<{$projectInfo.project_id}>"><{$projectInfo.project_name}></a></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        问卷名称：<input type="text" value="<{$params.question_name}>" class="input-text" name="question_name">
                    问卷编号：<input type="text" name="question_identifier" id="start_uploadtime" value="<{$params.question_identifier}>" size="21" class="date input-text">&nbsp;
                                    <input type="hidden" id="project_id" name="project_id" value="<{$params.project_id}>" />
                                    <input type="submit" value="搜索" class="button" name="dosubmit"> 
                    </div>
                    <div class="content-menu ib-a blue"> <a href="/webadmin/progress/schedule" class="on"><em>项目进度查询</em></a> </div>
                </form> 

                        <div class="pad_10">
                          <div class="table-list">
                          <table width="100%">
                                <thead>
                                  <tr>
                                    <th width="10%">问卷编号</th>
                                    <th width="25%">问卷名称</th>
                                    <th width="15%">创建时间</th>
                                    <th width="10%">网点数量</th>
                                    <th width="10%">已导入数据网点数量</th>
                                    <th width="10%">问卷进度</th>
                                    <th width="10%">网点进度</th>
                                  </tr>
                                </thead>
                                <tbody>
                                  <{foreach $questionInfo as $key => $val}>
                                  <tr>
                                        <td align="center"><{$val.identifier}></td>
                                        <td align="center"><a href="/webadmin/progress/netquestion?question_id=<{$val.question_id}>" style="color:#b73632;"><{$val.question_name}></a></td>
                                        <td align="center"><{$val.create_time|date_format:"%Y-%m-%d %H:%M:%S"}></td>
                                        <td align="center"><{$val.network_num}></td>
                                        <td align="center"><{$val.complete_num}></td>
                                        <td align="center"><{if $val.network_num}> <{math equation="x/y*100" x=$val.tijiao_one_num y=$val.network_num format="%.2f"}>%<{else}>0%<{/if}></td>
                                        <td align="center"><a href="/webadmin/progress/netquestion?question_id=<{$val.question_id}>">点击查看</a></td>
                                  </tr>
                                  <{/foreach}>
                                </tbody>
                          </table>
                                <div style="float:right;"><{$page}></div>
                          </div>
                        </div>
                </td>
          </tr>
        </table>
    	</td>
 </tr>
</table>
<script type="text/javascript">
$(document).ready(function($) {
	$('a[name="delete"]').click(function() {
		var id = $(this).attr('rel');
		if (id == ''){
			return false;
		}
		$or = confirm('你确定要删除吗？');
		if($or){
	  		$.ajax({
	 			 type:'post',
	 			 async : true,
				 dataType:"json",
				 data: {'project_id':id},
	 			 url:'/webadmin/project/delete',
	 			 success:function(data){
	 				alert(data.msg);
	 				if(!data.ok){
						return false ;
					}else{
						location.reload();
					}
	 			 }
	 		});
	  	}
	});
});
</script>
<{include file="../common/footer.tpl"}>